package ist.utl.pt.smartfleet.stationterminal.traveller;

import ist.utl.pt.smartfleet.stationterminal.location.Location;
import ist.utl.pt.smartfleet.stationterminal.station.Station;
import ist.utl.pt.smartfleet.stationterminal.trip.Trip;

import java.io.Serializable;
import java.util.Date;

public class Traveller implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2462543849508822042L;

	private int idTravel;
	private String name;
	private String state;
	private Location destination;
	private int size;
	private Date checkInTime;
	private Date checkOutTime;
	private Station station;
	private Trip trip;

	public Traveller() {
	}

	public Traveller(String id, String name, String state, String size,
			String checkInTime, String checkOutTime) {
		this.idTravel = Integer.parseInt(id);
		this.name = name;
		this.size = Integer.parseInt(size);
		this.state = state;

	}

	/**
	 * @return the idTravel
	 */
	public int getIdTravel() {
		return idTravel;
	}

	/**
	 * @param idTravel
	 *            the idTravel to set
	 */
	public void setIdTravel(int idTravel) {
		this.idTravel = idTravel;
	}

	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}

	/**
	 * @param state
	 *            the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}

	/**
	 * @return the destination
	 */
	public Location getDestination() {
		return destination;
	}

	/**
	 * @param destination
	 *            the destination to set
	 */
	public void setDestination(Location destination) {
		this.destination = destination;
	}

	/**
	 * @return the size
	 */
	public int getSize() {
		return size;
	}

	/**
	 * @param size
	 *            the size to set
	 */
	public void setSize(int size) {
		this.size = size;
	}

	/**
	 * @return the checkinTime
	 */
	public Date getCheckInTime() {
		return checkInTime;
	}

	/**
	 * @param checkinTime
	 *            the checkinTime to set
	 */
	public void setCheckinTime(Date checkInTime) {
		this.checkInTime = checkInTime;
	}

	/**
	 * @return the checkoutTime
	 */
	public Date getCheckOutTime() {
		return checkOutTime;
	}

	/**
	 * @param checkoutTime
	 *            the checkoutTime to set
	 */
	public void setCheckOutTime(Date checkOutTime) {
		this.checkOutTime = checkOutTime;
	}

	/**
	 * @return the station
	 */
	public Station getStation() {
		return station;
	}

	/**
	 * @param station
	 *            the station to set
	 */
	public void setStation(Station station) {
		this.station = station;
	}

	/**
	 * @return the trip
	 */
	public Trip getTrip() {
		return trip;
	}

	/**
	 * @param trip
	 *            the trip to set
	 */
	public void setTrip(Trip trip) {
		this.trip = trip;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

}
